import request from '@/utils/request';

// 产品服务

// 获取产品服务列表
export const getProductServiceList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ProductService/GetProductServiceList',
    method: 'GET',
    params
  });
}

// 添加产品服务
export const addProductService = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ProductService/AddProductService',
    method: 'POST',
    data
  });
}

// 更新产品服务
export const updateProductService = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ProductService/UpdateProductService',
    method: 'POST',
    data
  });
}

// 删除产品服务
export const deleteProductService = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ProductService/DeleteProductService',
    method: 'POST',
    data
  });
}


// 解决问题
// 解决问题列表
export const getSolveQuestionList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/GetSolveQuestionList',
    method: 'GET',
    params
  });
}

// 添加解决问题
export const addSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/AddSolveQuestion',
    method: 'POST',
    data
  });
}

// 更新解决问题
export const updateSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/UpdateSolveQuestion',
    method: 'POST',
    data
  });
}

// 删除解决问题
export const deleteSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/DeleteSolveQuestion',
    method: 'POST',
    data
  });
}

// 启用解决问题
export const enableSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/EnabledSolveQuestion',
    method: 'POST',
    data
  });
}

// 禁用解决问题
export const disableSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolveQuestion/DisabledSolveQuestion',
    method: 'POST',
    data
  });
}


// 应用场景
// 获取应用场景列表
export const getProductSceneList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ApplicationScene/GetApplicationSceneList',
    method: 'GET',
    params
  });
}

// 添加应用场景
export const addProductScene = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ApplicationScene/AddApplicationScene',
    method: 'POST',
    data
  });
}

// 更新应用场景
export const updateProductScene = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ApplicationScene/UpdateApplicationScene',
    method: 'POST',
    data
  });
}

// 删除应用场景
export const deleteProductScene = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/ApplicationScene/DeleteApplicationScene',
    method: 'POST',
    data
  });
}
